<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        {
            function fn({name,age}){
                console.log(name,age);
            }
            fn({name:"zhangsan",age:20});
        }
        {
            let obj = {
                name:"zhangsan",
                age:20
            }
            let {name,age} = obj ; 
            console.log(name,age);
        }
        {
            function fn ([a,b,c]){
                console.log(a,b,c);
            }
            fn([10,20,30]);
        }
        {
            let arr = [10,20,30,40,50] ; 
            let [a,b,c,d,e] = arr ;
            console.log(a,b,c,d,e);
        }
    </script>
</body>
</html>